﻿Public Class frmLog 

    Private Sub TlogBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs) Handles TlogBindingNavigatorSaveItem.Click
        Me.Validate()
        Me.TlogBindingSource.EndEdit()
        Me.TableAdapterManager.UpdateAll(Me.DbFireAndIceDataSet)

    End Sub

    Private Sub frmLog_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
        'TODO: This line of code loads data into the 'DbFireAndIceDataSet.usuarios' table. You can move, or remove it, as needed.
        Me.UsuariosTableAdapter.Fill(Me.DbFireAndIceDataSet.usuarios)

        My.Forms.AutentificarLog.Close()
        'TODO: This line of code loads data into the 'DbFireAndIceDataSet.tlog' table. You can move, or remove it, as needed.

        Try
            Me.TlogTableAdapter.Fill(Me.DbFireAndIceDataSet.tlog)
        Catch ex As Exception
            LogSGS.RegistrarLogYEnviarCorreo(My.Resources.StringGlobal.prgVinicio, "Load del formulario LOG", ex, My.Resources.StringGlobal.mdlGeneral, Name, sender.GetType.FullName.ToString)
        End Try

    End Sub

    Private Sub SimpleButton1_Click(sender As System.Object, e As System.EventArgs) Handles SimpleButton1.Click
        TlogGridControl.ShowPrintPreview()
        ''aa.
    End Sub
End Class